🌻 Factors Panel

🏷️ What you can do here: See all the factors (causes and effects) in your data, ranked by how often they appear. Select multiple factors to rename them, merge similar ones, or delete unwanted entries. If you've added demographic data to your sources, you can also see statistical breakdowns showing which groups mention certain factors more often.

above both links and factors tables add a toggle "Use filters". If on (default) the table is filtered by the links filters. If off, we bypass this part of the pipeline and filter only by project and sources.

The Factors panel displays all unique labels from the current filter pipeline.

Table Features:

Action Buttons:

Find out more about bulk delete and relabel of factors here.

Bulk factor labels editor#

The search/replace functions in the factors and links tables are useful, but what if you have thousands of factors to look at? You might prefer this bulk editor.

Toggle the Bulk Edit switch to edit multiple factor labels at once. The table header remains visible for sorting and filtering, while the table body is replaced with a line-by-line editor.

Features:

How it works:

  1. Toggle Bulk Edit on
  2. Edit factor labels directly in the editor
  3. Press Save Changes to apply your edits
  4. A confirmation dialog shows which labels will change and how many links will be affected
  5. After saving, the editor refreshes to show the updated labels

NEW: add a second column to this div so that the editor takes up 9/12 of the width. in the new column, provide some live info about the selected factor: source and citation counts, and a list of sources mentionoing it.

Search/replace#

Near the top is a row containing a search box. If you type something into it,

The search is case sensitive.

You can then alter what you see in the Replace box:

Then when you are satisfied, check all the checkboxes where you want to update the labels as shown. If you want, select all rows using the checkbox at the top of the column. Note, if there are more hits than fit on this page of your table, you'll want to either treat each page separately or increase the page size with the Page Size selector.

Finally, hit the Replace button to actually update the labels as shown in the rows you selected. What actually happens is that the Cause and Effect labels in all the currently selected links are changed. As you'd expect, this search/replace only affects the factors for the currently selected links: for example if you have only selected the first three sources, this update will not affect the links in the other sources.

.

Demographic Breakdowns#

Statistical Significance Testing#

When you select exactly one custom column for breakdown, the factors table includes powerful chi-squared significance testing to identify factors that are preferentially mentioned by different groups.

Show Differences dropdown appears with threshold options:

Visual indicators:

Ordinal testing (numeric breakdowns):

in the factors table when factor-show-differences is on, we calculate chi-sq. but if over 95% of non-missing values in the column selected in #factor-custom-column-input can be interpreted as numeric, we should use an ordinal test instead, or apply an ordinal correction to make the chisq test more powerful

Developer note: Percent mode divides each factor’s cell by the group total for that breakdown column. State keys: factorDisplayMode, significanceThreshold.